package cxf.spring.demo.domain.message;

import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlElement;

/**
 * Message attachment bean
 *
 * User: Vlad Vinichenko (akerigan@gmail.com)
 * Date: 06.03.2009
 * Time: 20:22:45
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class MessageAttachment {

    /**
     * Name of attached file
     */
    @XmlElement(name = "name")
    String fileName;

    /**
     * Mime of attached file
     */
    @XmlElement(name = "mime")
    String mime;

    /**
     * File data
     */
    @XmlElement(name = "data")
    byte[] data;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getMime() {
        return mime;
    }

    public void setMime(String mime) {
        this.mime = mime;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }
}
